package it.cqupt.service.system;

import com.github.pagehelper.PageInfo;
import it.cqupt.domain.system.Role;

import java.util.List;

public interface RoleService {
    void save(Role role);
    void delete(Role role);
    void update(Role role);
    Role findById(String id);
    List<Role> findAll();
    //使用pagehelper这个工具来直接实现分页显示
    PageInfo findAll(int page, int size);

    void updateRoleModule(String roleId, String moduleIds);

    List<Role> findAllUserRole(String userId);
}
